package holdem.Rulegui;

import holdem.ListInt;




public class GeneCode extends Code{
	/**
	 * 
	 */
	private static final long serialVersionUID = -988895237883035249L;
	private int i;
	
	
	public static void main(String[] s){
		Code ft = new GeneCode(3);
		System.out.println(ft.saveString());
		ft = Code.load(ft.saveString());
		System.out.println(ft.saveString());
		
	}
	//defalut constuctor
	public GeneCode(){}
	//
	public GeneCode(int i){
		this.i = i;
	}
	public ListInt parse(GeneticCode code, ListInt Wmemeory) {
		
		ListIntDefualt Rval  =new ListIntDefualt();
		Rval.set(code.get(i).get());
		return (ListInt) Rval;
	}

	@Override
	public String saveString() {
		
		return "G" + i;
	}
	
}
